function onSave(){
    console.log('save')

    document.querySelector('#save').submit();
}

function onView(id) {
    console.log(id);

    location.href = '/records/' + id
}